<?php
/* Smarty version 3.1.31, created on 2018-06-04 21:30:47
  from "D:\wamp64\www\wanju\views\user\index.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.31',
  'unifunc' => 'content_5b153f07ceaef9_38396331',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '4eae01276bf3926b1d44799fce8ec80e3d180704' => 
    array (
      0 => 'D:\\wamp64\\www\\wanju\\views\\user\\index.html',
      1 => 1528119044,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5b153f07ceaef9_38396331 (Smarty_Internal_Template $_smarty_tpl) {
?>

  <div class="x_panel">
    <div class="x_content" style="display: block;">
      <!--表格主体内容-->
      <div class="nav navbar-right panel_toolbox">
          <a class="fa fa-plus" href="/user/add.html"> 添加</a>
      </div>
      <br><br>
      <div class="row-fluid">
        <form action="/user/index.html" method="get">
          <div class="col-md-3 col-sm-3 col-xs-3">
            <label class="control-label">手机号</label>
            <input type="text" class="form-control" name="form[phone]" value="<?php echo $_smarty_tpl->tpl_vars['query']->value['phone'];?>
">
          </div>
          <button type="submit" class="btn btn-primary" style="margin-bottom: -58px;">搜索</button>
        </form>
      </div>
      <div class="cont">
        <table class="table table-bordered table-striped">
          <thead>
          <tr>
            <th width="100px">序号</th>
            <th>电话</th>
            <th>类型</th>
            <th>微信昵称</th>
            <th>微信头像</th>
            <th>性别</th>
            <th>城市</th>
            <th>绑定情况</th>
            <th>绑定时间</th>
            <th>创建时间</th>
            <th>状态</th>
            <th>操作</th>
          </tr>
          </thead>
          <tbody>
          <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['user']->value['lists'], 'useritem');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['useritem']->value) {
?>
          <tr>
            <td><?php echo $_smarty_tpl->tpl_vars['useritem']->value['user_id'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['useritem']->value['phone'];?>
</td>
            <td><?php if ($_smarty_tpl->tpl_vars['useritem']->value['type'] == 0) {?>用户<?php } elseif ($_smarty_tpl->tpl_vars['useritem']->value['type'] == 1) {?>店主<?php } else { ?>店长<?php }?></td>
            <td><?php echo $_smarty_tpl->tpl_vars['useritem']->value['wechat_name'];?>
</td>
            <td><?php if ($_smarty_tpl->tpl_vars['useritem']->value['head_img']) {?><img src="<?php echo $_smarty_tpl->tpl_vars['useritem']->value['head_img'];?>
" width="50" height="50"><?php }?></td>
            <td><?php if ($_smarty_tpl->tpl_vars['useritem']->value['gender'] == 0) {?>未知<?php } elseif ($_smarty_tpl->tpl_vars['useritem']->value['gender'] == 1) {?>男<?php } else { ?>女<?php }?></td>
            <td><?php echo $_smarty_tpl->tpl_vars['useritem']->value['city'];?>
</td>
            <td><?php if ($_smarty_tpl->tpl_vars['useritem']->value['bind_status'] == 1) {?>已绑定<?php } else { ?>未绑定<?php }?></td>
            <td><?php echo $_smarty_tpl->tpl_vars['useritem']->value['bind_time'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['useritem']->value['create_time'];?>
</td>
            <td><?php if ($_smarty_tpl->tpl_vars['useritem']->value['status'] == 1) {?>有效<?php } else { ?>无效<?php }?></td>
            <td>
              <div class="x_content">
                <a class="btn btn-primary btn-xs" href="<?php $_template = new Smarty_Internal_Template('eval:'.U(array('user/edit','user_id'=>$_smarty_tpl->tpl_vars['useritem']->value['user_id'])), $_smarty_tpl->smarty, $_smarty_tpl);echo $_template->fetch(); ?>">编辑</a>
                <a class="btn btn-primary btn-xs" href="<?php $_template = new Smarty_Internal_Template('eval:'.U(array('user/other-detail','user_id'=>$_smarty_tpl->tpl_vars['useritem']->value['user_id'])), $_smarty_tpl->smarty, $_smarty_tpl);echo $_template->fetch(); ?>"> 查看在线情况、收入</a>
                <button class="btn btn-danger btn-xs" data-toggle="dropdown"><?php if ($_smarty_tpl->tpl_vars['useritem']->value['status'] == 1) {?>设为无效<?php } else { ?>设为有效<?php }?>
                  <i class="icon-angle-down"></i></button>
                <ul class="dropdown-menu">
                  <li><a href="<?php $_template = new Smarty_Internal_Template('eval:'.U(array('user/save-status','user_id'=>$_smarty_tpl->tpl_vars['useritem']->value['user_id'])), $_smarty_tpl->smarty, $_smarty_tpl);echo $_template->fetch(); ?>">确定</a></li>
                  <li><a href="javascript:;">取消</a></li>
                </ul>
              </div>
            </td>
          </tr>
          <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
?>

          </tbody>
        </table>
        <!--分页-->

        <?php echo Yii::$app->view->render('/com/pager.php',array('pager'=>$_smarty_tpl->tpl_vars['user']->value['pager']));?>

      </div>
    </div>
  </div>

<?php }
}
